#!/bin/bash
FILENAME=$1
i=0
STATEMENT=`basename -s .txt $FILENAME`
printf "\033[0;33m{Test $STATEMENT SQL}\033[0m\n"

while read line
do 
    i=`expr $i + 1`;
    #printf "\n\033[0;33mTEST$i\033[0m\n"
    if [[ ${line} == /* ]]; then
        continue
    fi
    echo "${line}" | xargs -0 ./test_lib
done < $FILENAME
